﻿using System.Collections.Generic;
using System.Windows;
using System.Windows.Documents;
using Microsoft.Windows.Controls.Ribbon;

namespace SampleHelper
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : RibbonWindow
    {
        public MainWindow()
        {
            InitializeComponent();

            // Insert code required on object creation below this point.
        }

        private void _scanAllSamples_Click(object sender, RoutedEventArgs e)
        {
            //Helper.ScanAllSamples(true);
        }
        
        private void _createTemplateInfoFile_Click(object sender, RoutedEventArgs e)
        {
            Helper.CreateTemplateInfoFile();
        }

        private void _createDeepZoomImages_Click(object sender, RoutedEventArgs e)
        {
            //List<ItemInfo> samples = Helper.ScanAllSamples(false);

            //Helper.GenerateDeepZoomImages(samples, Settings.DeepZoomPath, true, true);
        }

        private void _createPivotIndex_Click(object sender, RoutedEventArgs e)
        {
            //List<ItemInfo> samples = Helper.ScanAllSamples(false);

            //Helper.CreatePivotFile(Settings.DeepZoomPath, samples);
        }

        private void _pivotPreview_Click(object sender, RoutedEventArgs e)
        {

        }

        private void _createProjectZipFiles_Click(object sender, RoutedEventArgs e)
        {
            Helper.CreateProjectZipFile();
        }

        private void _readWebcastFile_Click(object sender, RoutedEventArgs e)
        {
            //string path = Settings.DeepZoomPathWebcast;
            //List<ItemInfo> samples = WebcastHelper.LoadWebcasts();
            //Helper.GenerateDeepZoomImages(samples, path, false, true);
            //Helper.CreatePivotFile(path, samples);
        }

        private void _createDemoHtmlPage_Click(object sender, RoutedEventArgs e)
        {
            

            Helper.CreateSampleHtmlPage();
        }
    }
}
